const path = require('path');

module.exports = {
  devServer: {
    port: 8088,
    proxy: {
      '/user': {
        target: 'http://localhost:8888',
        changeOrigin: true,
      },
      '/bill': {
        target: 'http://localhost:8888',
        changeOrigin: true,
      },
      '/consumptionType': {
        target: 'http://localhost:8888',
        changeOrigin: true,
        pathRewrite: {
          '^/api': '',
        },
      },
    },
  },
  lintOnSave: false,
  configureWebpack: {
    resolve: {
      alias: {
        '@': path.resolve(__dirname, 'src'),
      },
    },
  }
}